import { handleActions } from 'redux-actions';
import * as AgentTypes from '../types/AgentTypes';

const initialState = {
  agentMessage: {},
  agentAuthorize: {},
};

const AgentReducers = handleActions(
  {
    [AgentTypes.UPDATE_AGENT_MESSAGE]: (state, action) => {
      return Object.assign({}, state, { agentMessage: action.payload });
    },
  },
  initialState
);

export default AgentReducers;
